package com.example.r2022913.model.entity.WxEntity;


import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "sys_wxuser")
public class WXUser implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
//    @TableField(value = "username")

    @Alias("用户名")
    private String username;
    @JsonIgnore
//    @TableField(value = "password")
    private String password;
//    @TableField(value = "nickname")

    @Alias("用户昵称")
    private String nickname;

//    @TableField(value = "phone")

    @Alias("用户电话")
    private String phone;

    @Alias("用户头像地址")
//    @TableField(value = "avatar_url")
    private String avatarUrl;

//    @TableField(value = "open_id")
    private String openId;

//    @TableField(value = "role")
    private Integer role;

    //    @TableField(value = "skey")
    private String skey;

    private String sessionKey;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
//    @TableField(value = "create_time")
    private Date createTime;


}
